.class Lcom/example/m6wmr/JuanActivity$7;
.super Ljava/lang/Thread;
.source "JuanActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/JuanActivity;->savejuan()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/JuanActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/JuanActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    .line 615
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 617
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 619
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 622
    .local v5, "msg":Landroid/os/Message;
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    # getter for: Lcom/example/m6wmr/JuanActivity;->myLoginView:Landroid/view/View;
    invoke-static {v12}, Lcom/example/m6wmr/JuanActivity;->access$2(Lcom/example/m6wmr/JuanActivity;)Landroid/view/View;

    move-result-object v12

    const v13, 0x7f0c024d

    invoke-virtual {v12, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/EditText;

    .line 623
    .local v6, "phone":Landroid/widget/EditText;
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    # getter for: Lcom/example/m6wmr/JuanActivity;->myLoginView:Landroid/view/View;
    invoke-static {v12}, Lcom/example/m6wmr/JuanActivity;->access$2(Lcom/example/m6wmr/JuanActivity;)Landroid/view/View;

    move-result-object v12

    const v13, 0x7f0c024c

    invoke-virtual {v12, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 625
    .local v0, "address":Landroid/widget/EditText;
    invoke-virtual {v6}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v12

    invoke-interface {v12}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    .line 626
    const-string v13, "%"

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, " "

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    .line 627
    .local v2, "cardpwd":Ljava/lang/String;
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v12

    invoke-interface {v12}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    .line 628
    const-string v13, "%"

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, " "

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    .line 629
    .local v1, "card":Ljava/lang/String;
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    .line 630
    const-string v13, "userInfo"

    const/4 v14, 0x0

    .line 629
    invoke-virtual {v12, v13, v14}, Lcom/example/m6wmr/JuanActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v7

    .line 631
    .local v7, "preferences":Landroid/content/SharedPreferences;
    const-string v12, "uid"

    const-string v13, ""

    invoke-interface {v7, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 632
    .local v10, "uid":Ljava/lang/String;
    const-string v12, "pass"

    const-string v13, ""

    invoke-interface {v7, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 633
    .local v8, "pwd":Ljava/lang/String;
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    iget-object v13, v13, Lcom/example/m6wmr/JuanActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 634
    const-string v13, "/index.php?ctrl=app&action=savejuan&card="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 635
    invoke-virtual {v12, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&cardpwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&uid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&pwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 633
    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 636
    .local v11, "url":Ljava/lang/String;
    const-string v12, "JuanActivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "savejuan\uff08\uff09\u5e2e\u9876\u4f18\u60e0\u6743 "

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 637
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    iget-object v12, v12, Lcom/example/m6wmr/JuanActivity;->m:Lmyapp/MyApp;

    invoke-static {v11, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v9

    .line 640
    .local v9, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 642
    .local v4, "json":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 643
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 645
    const-string v12, "msg"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 646
    const/4 v12, 0x1

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 647
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    iget-object v12, v12, Lcom/example/m6wmr/JuanActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 661
    .end local v4    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 650
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_0
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 651
    const/4 v12, 0x6

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 652
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    iget-object v12, v12, Lcom/example/m6wmr/JuanActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 653
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v3

    .line 655
    .local v3, "e":Lorg/json/JSONException;
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    .line 656
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 658
    const/4 v12, 0x5

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 659
    iget-object v12, p0, Lcom/example/m6wmr/JuanActivity$7;->this$0:Lcom/example/m6wmr/JuanActivity;

    iget-object v12, v12, Lcom/example/m6wmr/JuanActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 664
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 665
    monitor-exit p0

    return-void

    .line 664
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
